<?php

use Controller\Mobile;
/**
 * 首页
 * Class IndexController
 */
class IndexController extends Mobile
{

    protected $needLoginActions = ['shoppingunit','checkstorestatus'];

    public function init()
    {
        parent::init();
    }


    /**
     * 首页
     */
    public function indexAction()
    {
        $this->title = '首页';

        $mStoreModel = new StoreModel();
        $dataOne = [
            'store_total'   => $mStoreModel->countStores(),                                 //推荐商家列表
        ];
        $this->view(['dataOne' => $dataOne]);
    }

}